package javaee.controller;

import javaee.service.Impl.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller("userController")
public class UserController {
    // 使用 @Autowired 注解
    @Autowired
    private UserService userService;

    public void save() {
        this.userService.save();
        System.out.println("执行UserController.save()");
    }
}
